<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>YaCy '#[clientname]#': Blog</title>
    #%env/templates/metas.template%#
  </head>
  <body id="Blog">
    #%env/templates/header.template%#
    #(mode)#
      <!-- 0: viewing -->
      <div class="Post">
        <h2 class="PostSubject"><a href="BlogComments.html?page=#[pageid]#">#[subject]#</a></h2>
        <div class="PostBody">#[page]#</div>
        <p class="PostInfo">
          #[date]# | by #[author]# | <a href="BlogComments.html?page=#[pageid]#">#[comments]# Comments</a>
        </p>
      </div>
      <p class="Navigation">
        #(admin)#<a href="Blog.html?login=true">Login</a> - ::#(/admin)#<a href="Blog.html">Blog-Home</a>
      </p>
      <h3>Comments:</h3>
      #{entries}#
        <div class="BlogCommentPost">
          <h2 class="PostSubject">#[subject]#</h2>
          <div class="PostBody">#[page]#</div>
          <p class="PostInfo">
            #[date]# | by #[author]#
            #(admin)#::| <a href="BlogComments.html?page=#[pageid]#&amp;comment=#[commentid]#&amp;delete=try">delete</a> #(moderate)#::| <a href="BlogComments.html?page=#[pageid]#&amp;comment=#[commentid]#&amp;allow=try">allow</a>#(/moderate)##(/admin)#
          </p>
        </div>
      #{/entries}#
      <div class="BlogCommentPrevNext">
        <p>
        #(preventries)#
          &lt;&lt; previous entries
        ::
          <a href="BlogComments.html?page=#[pageid]#&amp;start=#[start]#&amp;num=#[num]#">&lt;&lt; previous entries</a>
        #(/preventries)#
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        #(moreentries)#
          next entries &gt;&gt;
        ::
          <a href="BlogComments.html?page=#[pageid]#&amp;start=#[start]#&amp;num=#[num]#">next entries &gt;&gt;</a>
        #(/moreentries)#
        </p>
      </div>
      #(allow)#
        <fieldset>
        <p>Comments are not allowed for this posting!</p>
        </fieldset>
      ::
        <h2>Comment on this Blog</h2>
        <form action="BlogComments.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
          <fieldset>
            <dl>
              <dt><label for="author">Author:</label></dt>
              <dd>
                <input name="author" id="author" type="text" size="80" maxlength="80" value="#[author]#" />
              </dd>
              <dt><label for="subject">Subject:</label></dt>
              <dd>
                <input name="subject" id="subject" type="text" size="80" maxlength="80" value="" />
              </dd>
              <dt><label for="content">Text:</label></dt>
              <dd>
                <textarea name="content" id="content" cols="80" rows="12"></textarea>
                <p class="help">
                  You can use <a href="WikiHelp.html" onclick="window.open('WikiHelp.html','WikiHelp','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480');return false;">Yacy-Wiki Code</a> here.
                </p>
              </dd>
            </dl>
            <input type="hidden" name="page" value="#[pageid]#" />
            <input type="submit" name="submit" class="btn btn-primary" value="Submit" />
            <input type="submit" name="preview" class="btn btn-default" value="Preview" />
            <input type="submit" name="view" class="btn btn-danger" value="Discard" />
          </fieldset>
        </form>
      #(/allow)#
    ::
      <!-- 1: preview -->
      <div class="Post">
        <h2 class="PostSubject"><a href="Blog.html?page=#[pageid]#">#[subject]#</a></h2>
        <div class="PostBody">#[page]#</div>
        <p class="PostInfo">
          #[date]# | by #[author]#
        </p>
      </div>
      <p class="Navigation">
        #(admin)#<a href="Blog.html?login=true">Login</a> - ::<a href="Blog.html?edit=true">new entry</a> - <a href="Blog.html?import=xml">import XML-File</a> - <a href="Blog.xml?xml=1">export as XML</a> - #(/admin)#<a href="Blog.html">Blog-Home</a>
      </p>
      <form action="BlogComments.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
        <fieldset>
          <dl>
            <dt><label for="author">Author:</label></dt>
            <dd>
              <input name="author" id="author" type="text" size="80" maxlength="80" value="#[author]#" />
            </dd>
            <dt><label for="subject">Subject:</label></dt>
            <dd>
              <input name="subject" id="subject" type="text" size="80" maxlength="80" value="#[subject]#" />
            </dd>
            <dt><label for="content">Text:</label></dt>
            <dd>
              <textarea name="content" id="content" cols="80" rows="12">#[page-code]#</textarea>
              <p class="help">
                You can use <a href="WikiHelp.html" onclick="window.open('WikiHelp.html','WikiHelp','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480');return false;">Yacy-Wiki Code</a> here.
              </p>
            </dd>
          </dl>
          <input type="hidden" name="page" value="#[pageid]#" />
          <!-- <input type="text" name="page" value="#[pageid]#" /> -->
          <input type="submit" name="submit" class="btn btn-primary" value="Submit" />
          <input type="submit" name="preview" class="btn btn-default" value="Preview" />
          <input type="submit" name="view" class="btn btn-danger" value="Discard" />
        </fieldset>
      </form>
      
    #(/mode)#
    
  #%env/templates/footer.template%#
  </body>
</html>
